package com.jjh.jhwebserver.io;

import java.io.PrintWriter;
import java.io.Writer;

public class JhPrintwriter extends PrintWriter {

    private String responseBody;




    public JhPrintwriter(Writer writer,String responseBody){
        super(writer);
        this.responseBody = responseBody;
    }

    /**
     * 将字符串写回去
     * @param s String to be written
     */
    @Override
    public void write(String s) {
       this.responseBody = s;
    }
}
